package com.MysqlData;

import com.UserDaoImpl;
import com.google.gson.JsonObject;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;

import com.JsonConvert;

/**
 * @author Xue ShuWen
 * @date 2023/6/19 14:54
 */
@WebServlet("/pie2")
public class Pieservlet2 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        try {
            PieData2 pieData = new PieData2();
            PrintWriter out = resp.getWriter();
            out.println(pieData.queryPie());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }
}
